/******************************************************************************
 * The contents of this file are subject to the   JDI License  Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Initial Developer of the Original Code is 陈慧然. Portions created by 
 * 陈慧然 are Copyright 陈慧然.
 * All Rights Reserved.
 *
 *              Contact john_holen@163.com for licensing alternatives.
 *
 *****************************************************************************/


package org.peony.exceptions;

/**
 *  
 *
 *  @author     陈慧然
 *  @version    Id: ConfigExceptions.java, v 0.000 2008-6-15 下午07:02:11 陈慧然 Exp
 */
public class ConfigException extends RuntimeException{
	private static final long serialVersionUID = -3060774514521856845L;
	/**
	 * 未在属性文件中找到任何键值对。
	 */
	public static final String NOCONFIGPROPERTIES = "No Properties in the Config File";
	/**
	 * 未找到属性文件。
	 */
	public static final String NOCONFIGFILE = "No Properties File";
	/**
	 * 数据库系统类型错误。
	 */
	public static final String ERRORDBMSTYPE = "DBMS Type Is Error!";
	/**
	 * JDBC驱动错误。
	 */
	public static final String JDBCDRIVERISNULL = "JDBC Driver is null!";
	/**
	 * DB url错误。
	 */
	public static final String DBURLISNULL = "DB Url is null!";
	/**
	 * 不能连接到数据库系统。
	 */
	public static final String CANNOTCONNECTTODB = "Can NOT connect to the DBMS!";
	/**
	 * 数据库配置错误
	 */
	public static final String DBCONFIGERROR = "Db config has error!";
	/**
	 * 应用配置错误
	 */
	public static final String APPCONFIGERROR = "App config has error!";
	/**
	 * 不能重复配置应用设置
	 */
	public static final String CANNOTRECONFIG = "Can NOT reconfig context!";
	/**
	 * 事务类型错误
	 */
	public static final String TRASCATIONTYPEISERROR = "Transcation Type is Error!";
	/**
	 * 连接数错误
	 */
	public static final String MAXORMINCONNISNOTAVAILABLE = "The max or min number of connection is not avaliable";
	/**
	 * 数据库配置无效
	 */
	public static final String DBCONFIGISNOTAVIALIBLE = "DB config is not avalible!";
	public ConfigException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ConfigException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}

	public ConfigException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}

	public ConfigException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}
	
}
